package factoryMethodPattern.Pen;

/**
 * @program: course
 * @author: lsn
 * @create: 2024-03-24 20:46
 * @description: 黑色笔芯的具体实现
 */
public class BlackPenCore extends PenCore{


    public BlackPenCore() {
        super("黑色");
    }

    @Override
    public void writeWord(String s) {
        System.out.println("用[" + color + "笔芯]写出{"+color+"}的字: " + s);
    }
}
